<?php
if (empty($_GET['id'])) {
	$detail = array(
		'id' => '',
		'cid' => '',
		'recommend' => '',
		'cname' => '',
		'lang' => $lang,
		'name' => '',
	);
	$moPos = 'productAdd';
} else {
	$detail = Product::read($_GET['id']);
	$moPos = 'productModify';
}

$categoryList = Product::getCategoryList($lang);
